import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import "element-plus/dist/index.css";
import "@/assets/style.css";
import { regAllDirective } from "./directives";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const app = createApp(App);

regAllDirective(app);

// 注册路由
app.use(router);
// 使用icon的
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
// 注册仓库
const pinia = createPinia();
app.use(pinia);

app.mount("#app");
